package edu.washington.vaccine.backend;

/*
 * 
 * holds necessary patient data for a single patient
 */

public class Patient implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	
	public int id;
	public String lname;
	public String fname;
	public String dob;
	public String location;
	public String mother;
	public String father;
	public String editdate;
	public String conflict;
	public String vaccineInfo;
	public String notes;
	
	public Patient(int id, String lname, String fname, String dob, String location, 
			String father, String mother, String editdate, String conflict, String notes) {
		this.id = id;
		this.lname = lname;
		this.fname = fname;
		this.dob = dob;
		this.location = location;
		this.father = father;
		this.mother = mother;
		this.editdate = editdate;
		this.conflict = conflict;
		this.notes = notes;
	}
	
//	public Patient(int id, String lname, String fname, String dob, String location, 
//			String father, String mother) {
//		this(id, lname, fname, dob, location, father, mother, null, null, null);
//	}
	
//	public Patient(int id, String lname, String fname, String dob, String mother, String father, String vaccines) {
//		this(id, lname, fname, dob, mother, father, "NULL", "NULL");
//	}
//	
//	public Patient(int id, String lname, String fname, String dob) {
//		this(id, lname, fname, dob, "NULL", "NULL", "NULL", "NULL");
//	}
	
	public Patient(String name){
		lname = name;
	}
	
	public String getStats() {
		return "";
	}
	
	public String toString() {
		return "" + id + " " + fname + " " + lname;
	}
	
	public boolean equals(Object o) {
		if (o instanceof Patient) {
			Patient other = (Patient) o;
			return id == other.id;
		}
		return false;
	}
	
}
